[XM-TEST] Fix network tests for -route and -nat
authorkaf24@localhost.localdomain <kaf24@localhost.localdomain>
Sat, 12 Aug 2006 14:58:52 +0000 (15:58 +0100)
committerkaf24@localhost.localdomain <kaf24@localhost.localdomain>
Sat, 12 Aug 2006 14:58:52 +0000 (15:58 +0100)
vif-nat and vif-route need to know domU ethX IP addresses in order to set
up the appropriate routes.The new network test infrastructure is not
providing the IP address on the vif line in /tmp/xm-test.conf; adding
it turns out to be a one-liner.

Tested with xm-test running with -bridge, -route, and -nat network
scripts.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
tools/xm-test/lib/XmTestLib/XenDevice.py

index 25c4dda78c06a341acccc8052385a20ed725187e..cbe16d565867b695e12a42c0a5272ca64a8ca298 100644 (file)
@@ -265,6 +265,7 @@ class XenNetDevice(XenDevice):
             self.ip = xmtest_netconf.getIP(self.domain.getName(), self.id)
 
         self.addIfconfigCmd()
+        self.config["ip"] = str(self.ip)
 
         # Setup an alias for Dom0
         self.dom0_alias_ip = xmtest_netconf.getIP("domain0", self.domain.getName())